Skip to content

Commit

Permalink
Only show visible products in issue voucher section (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Guldborg authored Feb 13, 2024
1 parent e202646 commit 293fe85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shifty.App/Components/Voucher.razor
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@

result.Match(
Succ: products => {
_products = products;
_products = products.Filter<ProductResponse>(p => p.Visible);
_voucherForm.Prefix = User.Claims.Single(el => el.Type.Contains("email")).Value[..3].ToUpper();
},
Fail: error => {
Expand Down

0 comments on commit 293fe85

Please sign in to comment.