Skip to content

Commit

Permalink
fix: vars names updated for consistency with queries
Browse files Browse the repository at this point in the history
  • Loading branch information
roger-in-kiva committed Oct 31, 2023
1 parent b4a0ac1 commit 3ff8ec0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/graphql/query/checkout/initializeCheckout.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ query initializeCheckout($basketId: String) {
key
value
}
ftd_amount: uiConfigSetting(key: "ftd_message_amount") {
ftd_message_amount: uiConfigSetting(key: "ftd_message_amount") {
key
value
}
ftd_date_time: uiConfigSetting(key: "ftd_message_valid_date") {
ftd_message_valid_date: uiConfigSetting(key: "ftd_message_valid_date") {
key
value
}
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/query/thanksPage.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ query checkoutReceipt($checkoutId: Int!, $visitorId: String) {
key
value
}
ftd_amount: uiConfigSetting(key: "ftd_message_amount") {
ftd_message_amount: uiConfigSetting(key: "ftd_message_amount") {
key
value
}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Checkout/CheckoutPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,8 @@ export default {
this.lenderTotalLoans = data?.my?.loans?.totalCount ?? 0;
// Enable FTDs message from settings
this.isFtdMessageEnable = readBoolSetting(data, 'general.ftd_message_enable.value');
this.ftdCreditAmount = data?.general?.ftd_amount?.value ?? '';
this.ftdValidDate = data?.general?.ftd_date?.value ?? '';
this.ftdCreditAmount = data?.general?.ftd_message_amount?.value ?? '';
this.ftdValidDate = data?.general?.ftd_message_valid_date?.value ?? '';
}
},
beforeRouteEnter(to, from, next) {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Thanks/ThanksPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export default {
// Enable FTDs message from settings
this.isFtdMessageEnable = readBoolSetting(data, 'general.ftd_message_enable.value');
// Credit amount for FTD message from settings
const ftdCreditAmountData = data?.general?.ftd_amount ?? null;
const ftdCreditAmountData = data?.general?.ftd_message_amount ?? null;
this.ftdCreditAmount = ftdCreditAmountData ? ftdCreditAmountData.value : '';
const loansResponse = this.receipt?.items?.values ?? [];
Expand Down

0 comments on commit 3ff8ec0

Please sign in to comment.