mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
refactor: standardize device type strings to lowercase in registerPushDevice function for consistency
This commit is contained in:
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user