Skip to content

Commit

Permalink
Merge pull request #7 from openfoodfoundation/feature/typo
Browse files Browse the repository at this point in the history
Fix: capitalisation of attribute
  • Loading branch information
ok200paul authored Aug 14, 2024
2 parents f08aab0 + 0599b6e commit d1516aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions resources/js/Components/Admin/AdminTopNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const searchResults = ref({
users: [],
teams: [],
vouchers: [],
voucher_sets: [],
voucherSets: [],
});
const showResults = ref(false);
const showNoResults = ref(false);
Expand All @@ -32,7 +32,7 @@ watch(searchResults, () => {
searchResults.value.users.length ||
searchResults.value.teams.length ||
searchResults.value.vouchers.length ||
searchResults.value.voucher_sets.length
searchResults.value.voucherSets.length
) {
showResults.value = true;
} else {
Expand Down Expand Up @@ -186,12 +186,12 @@ function highlightMatchingText(text) {
</div>
</div>

<div v-if="searchResults.voucher_sets.length > 0" class="my-8">
<div v-if="searchResults.voucherSets.length > 0" class="my-8">
<div class="font-bold text-gray-300 mb-1">
Voucher Sets
</div>
<div>
<div v-for="voucherSet in searchResults.voucher_sets">
<div v-for="voucherSet in searchResults.voucherSets">
<a :href="'/voucher-set/' + voucherSet.id"
class="flex justify-between w-full py-2 border-b"
tabindex="0">
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/API/Admin/AdminSearch/AdminSearchGetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function itReturnsRelevantVoucherSetData()

$responseObject = json_decode($response->getContent(), false);

foreach ($responseObject->data->voucher_sets as $vs) {
foreach ($responseObject->data->voucherSets as $vs) {
self::assertStringContainsString($query, $vs->id);
}
}
Expand Down

0 comments on commit d1516aa

Please sign in to comment.