Skip to content

Commit

Permalink
Merge pull request #458 from leih-lokal/skjerns-patch-1
Browse files Browse the repository at this point in the history
Change to camelCase
  • Loading branch information
skjerns authored May 29, 2022
2 parents 360bc32 + d7d3f93 commit 0e2b5e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Frontend/src/data/rental/inputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ const updateCustomerOfRental = (context, customer) => {
};

const showNotificationsIfNotAvailable = async (item) => {
var status_mapping = {
var statusMapping = {
instock: "verfügbar",
outofstock: "verliehen",
reserved: "reserviert",
onbackorder: "temporär nicht verfügbar / in Reparatur",
};
var status = status_mapping[item.status];
var status = statusMapping[item.status];
if (["outofstock", "reserved", "onbackorder"].includes(item.status)) {
notifier.danger(
`Gegenstand ist nicht verfügbar, hat Status: ${status}`,
Expand Down

0 comments on commit 0e2b5e6

Please sign in to comment.