Skip to content

Commit

Permalink
Merge pull request #5790 from kiva/fix-control-module-string
Browse files Browse the repository at this point in the history
fix: adjust control module title copy
  • Loading branch information
dyersituations authored Feb 10, 2025
2 parents 321f5bc + 4f760ff commit 54542a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/components/Thanks/SingleVersion/ControlModule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,17 @@ const props = defineProps({
type: Boolean,
default: false,
},
onlyKivaCards: {
type: Boolean,
default: false,
},
});
const title = computed(() => {
const msg = 'Stay up to date with your lending history, stats, and more!';
return props.isOptedIn
? `Thank you!<br>${msg}`
: msg;
const msg = 'Stay up to date with your lending history, stats, and more';
return props.isOptedIn && !props.onlyKivaCards
? `Thank you!<br>${msg}.`
: `${msg}!`;
});
</script>
1 change: 1 addition & 0 deletions src/components/Thanks/ThanksPageSingleVersion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<ControlModule
v-else
:is-opted-in="isOptedIn"
:only-kiva-cards="onlyKivaCards"
@continue="handleContinue"
class="print:tw-hidden tw-mb-2.5"
/>
Expand Down

0 comments on commit 54542a3

Please sign in to comment.