fix: trigger memberPrice modal for membership number too

This commit is contained in:
Simon Emanuelsson
2025-05-26 16:09:02 +02:00
parent 32cc0cbe88
commit 39855d3c8a
10 changed files with 105 additions and 73 deletions

View File

@@ -57,7 +57,7 @@ export default function Phone({
rules: registerOptions,
})
const defaultPhoneNumber = formState.defaultValues?.phoneNumber
const defaultPhoneNumber = formState.defaultValues?.phoneNumber ?? ""
// If defaultPhoneNumber exists and is valid, parse it to get the country code,
// otherwise set the default country from the lang.