6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 524a8d11
Changed files
comwell_key_app/assets/translations/da-DK.json | 1 + comwell_key_app/assets/translations/en-US.json | 1 + comwell_key_app/lib/check_in/check_in_page.dart | 6 +++--- comwell_key_app/lib/pregistration/pregistration_repository.dart | 6 ++---- 4 files changed, 7 insertions(+), 7 deletions(-)
Diff
diff --git a/comwell_key_app/assets/translations/da-DK.json b/comwell_key_app/assets/translations/da-DK.json
index 1d7e154d..8ff8b0e8 100644
--- a/comwell_key_app/assets/translations/da-DK.json
+++ b/comwell_key_app/assets/translations/da-DK.json
@@ -2,6 +2,7 @@
"generic_continue": "Fortsæt",
"generic_information_required": "Dette felt er påkrævet",
"generic_confirm": "Bekræft",
+ "generic_done": "Færdig",
"welcome_headline": "Velkommen hos Comwell Hotels",
"welcome_button": "Fortsæt",
"welcome_error": "Der er sket en fejl. Genstart app.",
diff --git a/comwell_key_app/assets/translations/en-US.json b/comwell_key_app/assets/translations/en-US.json
index ca8e96d7..96b8017b 100644
--- a/comwell_key_app/assets/translations/en-US.json
+++ b/comwell_key_app/assets/translations/en-US.json
@@ -2,6 +2,7 @@
"generic_continue": "Continue",
"generic_information_required": "This information is required",
"generic_confirm": "Confirm",
+ "generic_done": "Done",
"welcome_headline": "Welcome at Comwell Hotels",
"welcome_button": "Continue",
"welcome_error": "An error occurred. Please try again later.",
diff --git a/comwell_key_app/lib/check_in/check_in_page.dart b/comwell_key_app/lib/check_in/check_in_page.dart
index c24d51d9..09bc78c8 100644
--- a/comwell_key_app/lib/check_in/check_in_page.dart
+++ b/comwell_key_app/lib/check_in/check_in_page.dart
@@ -224,10 +224,10 @@ class _CheckInPageState extends State<CheckInPage>
foregroundColor:
WidgetStatePropertyAll(
Colors.white)),
- child: const Padding(
- padding: EdgeInsets.symmetric(
+ child: Padding(
+ padding: const EdgeInsets.symmetric(
vertical: 16.0),
- child: Text("Færdig"),
+ child: Text("generic_done".tr()),
)),
),
),
diff --git a/comwell_key_app/lib/pregistration/pregistration_repository.dart b/comwell_key_app/lib/pregistration/pregistration_repository.dart
index 77dfdcd9..afe1a89d 100644
--- a/comwell_key_app/lib/pregistration/pregistration_repository.dart
+++ b/comwell_key_app/lib/pregistration/pregistration_repository.dart
@@ -19,9 +19,7 @@ class PreregistrationRepository {
PreregistrationRepository();
Future<Iterable<StoredPaymentMethod>> getPaymentMethods() async {
- final user = await profileSettingsRepository.fetchProfileSettings();
- if (user == null) throw Exception("User not logged in");
- final response = await api.getPaymentMethods(user.shopperReference);
+ final response = await api.getPaymentMethods();
return response.data!.storedPaymentMethods;
}
@@ -60,7 +58,7 @@ class PreregistrationRepository {
return PaymentEventHandler.fromJson(jsonResponse: response);
}
- static final Iterable<StoredPaymentMethod> _mockData = [1, 2, 3, 4].map((i) =>
+ static final Iterable<StoredPaymentMethod> mockStoredPaymentData = [1, 2, 3, 4].map((i) =>
StoredPaymentMethod(
expiryMonth: "expiryMonth",
expiryYear: "expiryYear",