feat(core): support signup set password before goto stripe payment url (#4892)

This commit is contained in:
Joooye_34
2023-11-09 19:58:16 +08:00
committed by GitHub
parent 405167854b
commit af72bf0f69
8 changed files with 143 additions and 53 deletions
+3 -3
View File
@@ -80,11 +80,11 @@ export const AuthPage = (): ReactElement | null => {
);
const onSetPassword = useCallback(
(password: string) => {
changePassword({
async (password: string) => {
await changePassword({
token: searchParams.get('token') || '',
newPassword: password,
}).catch(console.error);
});
},
[changePassword, searchParams]
);