Skip to content

Commit 89ccde1

Browse files
committed
refactor: standardize device type strings to lowercase in registerPushDevice function for consistency
1 parent 3aab280 commit 89ccde1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MobileApp/src/api/pushDevice.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ export async function registerPushDevice(params: {
88
}): Promise<void> {
99
const deviceType: string =
1010
Platform.OS === "ios"
11-
? "iOS"
11+
? "ios"
1212
: Platform.OS === "android"
13-
? "Android"
14-
: "Web";
13+
? "android"
14+
: "web";
1515

1616
try {
1717
await apiClient.post("/api/user-push/register", {

0 commit comments

Comments
 (0)