From d1141633d5790532e97ff2ff27ff4c18ff784a9f Mon Sep 17 00:00:00 2001 From: MyungHyun Ryu Date: Sun, 10 Dec 2023 14:34:36 +0900 Subject: [PATCH] :bug: Handle 400 error when uploading weight table --- .../example/speechbuddy/viewmodel/BackupSettingsViewModel.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/app/src/main/java/com/example/speechbuddy/viewmodel/BackupSettingsViewModel.kt b/frontend/app/src/main/java/com/example/speechbuddy/viewmodel/BackupSettingsViewModel.kt index a17d45e0..2fa4ac70 100644 --- a/frontend/app/src/main/java/com/example/speechbuddy/viewmodel/BackupSettingsViewModel.kt +++ b/frontend/app/src/main/java/com/example/speechbuddy/viewmodel/BackupSettingsViewModel.kt @@ -148,7 +148,9 @@ class BackupSettingsViewModel @Inject internal constructor( ResponseCode.SUCCESS.value -> { handleSuccess() } - + ResponseCode.BAD_REQUEST.value -> { + handleNoInternetConnection() + } ResponseCode.NO_INTERNET_CONNECTION.value -> { handleNoInternetConnection() }