Compare commits
No commits in common. "401ebb40d5ada7881e12cd25dadd4e72cf739025" and "131ed8d6088b3569885aa467a842e5f308d165a8" have entirely different histories.
401ebb40d5
...
131ed8d608
|
|
@ -432,9 +432,8 @@ export default function App() {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
const errorMsg = err.response?.data?.detail || 'Failed to save billing phone number.';
|
alert(err.response?.data?.detail || 'Failed to save billing phone number.');
|
||||||
alert(errorMsg);
|
return false;
|
||||||
throw new Error(errorMsg);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,16 +54,11 @@ export const BillingPhoneModal: React.FC<BillingPhoneModalProps> = ({
|
||||||
|
|
||||||
setSaving(true);
|
setSaving(true);
|
||||||
const e164 = formatE164Phone(dialCode, phone);
|
const e164 = formatE164Phone(dialCode, phone);
|
||||||
try {
|
|
||||||
const success = await onSavePhone(e164, country);
|
const success = await onSavePhone(e164, country);
|
||||||
|
setSaving(false);
|
||||||
if (success) {
|
if (success) {
|
||||||
onClose();
|
onClose();
|
||||||
}
|
}
|
||||||
} catch (err: any) {
|
|
||||||
setError(err?.message || 'Failed to save billing phone number.');
|
|
||||||
} finally {
|
|
||||||
setSaving(false);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue