Skip to content

Commit b77db67

Browse files
authored
(fix) Fixed default location validation (#1298)
1 parent cbd6dc4 commit b77db67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/apps/esm-login-app/src/login.resource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export function useValidateLocationUuid(userPreferredLocationUuid: string) {
135135

136136
const results = useMemo(
137137
() => ({
138-
isLocationValid: data?.ok,
138+
isLocationValid: data?.ok && data?.data.total > 0,
139139
defaultLocation: data?.data?.entry ?? [],
140140
error,
141141
isLoading,

0 commit comments

Comments
 (0)