refactor: standardize device type strings to lowercase in registerPushDevice function for consistency

This commit is contained in:
Nawaz Dhandala
2026-02-17 22:12:43 +00:00
parent 3aab280dcd
commit 89ccde1bc4

View File

@@ -8,10 +8,10 @@ export async function registerPushDevice(params: {
}): Promise<void> {
const deviceType: string =
Platform.OS === "ios"
? "iOS"
? "ios"
: Platform.OS === "android"
? "Android"
: "Web";
? "android"
: "web";
try {
await apiClient.post("/api/user-push/register", {