fix: Update dependency in useAsyncEffect to use modelId as a string for consistency

This commit is contained in:
Nawaz Dhandala
2026-01-17 13:48:43 +00:00
parent a8be03d3c9
commit a2d9cda7d9

View File

@@ -61,7 +61,7 @@ const IncomingCallPolicyView: FunctionComponent<
setError(API.getFriendlyMessage(err));
setIsLoading(false);
}
}, [modelId, refreshToggle]);
}, [modelId.toString(), refreshToggle]);
const handlePhoneNumberChange = (): void => {
setRefreshToggle(!refreshToggle);