mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 15:25:45 +00:00
fix: the issue in the sheets file
This commit is contained in:
@@ -392,7 +392,7 @@ export default function NewContractPage({
|
||||
[profileStatusByType, profileTypes],
|
||||
);
|
||||
|
||||
// Create-profile modal state (license upload → createProfileAndSwitch).
|
||||
// Create-profile modal state (license upload → createProfile).
|
||||
const [createTarget, setCreateTarget] = useState<ProfileTypeValue | null>(
|
||||
null,
|
||||
);
|
||||
@@ -416,7 +416,7 @@ export default function NewContractPage({
|
||||
type: ProfileTypeValue;
|
||||
files: File[];
|
||||
}) => {
|
||||
const res = await auth.createProfileAndSwitch(type, files);
|
||||
const res = await auth.createProfile(type, files);
|
||||
if (!res.success) {
|
||||
throw new Error(res.error?.message ?? "Failed to create profile");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user