forked from jsnbuchanan/crowd-funder-for-time-pwa
fix: improve error handling in photo upload
- Add proper unknown type for error handling in PhotoDialog - Remove any type in favor of unknown for better type safety - Fix error message access with type guards
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import { ImageResult, PlatformService } from "../PlatformService";
|
||||
import { Capacitor } from "@capacitor/core";
|
||||
import { Filesystem, Directory } from "@capacitor/filesystem";
|
||||
import { Camera, CameraResultType, CameraSource } from "@capacitor/camera";
|
||||
import { App } from "@capacitor/app";
|
||||
import { logger } from "../../utils/logger";
|
||||
|
||||
export class CapacitorPlatformService implements PlatformService {
|
||||
@@ -113,7 +111,7 @@ export class CapacitorPlatformService implements PlatformService {
|
||||
return false;
|
||||
}
|
||||
|
||||
async handleDeepLink(url: string): Promise<void> {
|
||||
async handleDeepLink(_url: string): Promise<void> {
|
||||
// Capacitor handles deep links automatically
|
||||
// This is just a placeholder for the interface
|
||||
return Promise.resolve();
|
||||
|
||||
Reference in New Issue
Block a user