Skip to content

Commit

Permalink
(bug) unable to show extended prices of space
Browse files Browse the repository at this point in the history
  • Loading branch information
gnepud committed Jan 5, 2024
1 parent 15b63c8 commit 9685b9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Next release
- translation files added for Swedish
- Fix a bug: unable to show extended prices of space

## v6.3.8 2023 December 29

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ReactNode, useState } from 'react';
import { ReactNode, useState, useEffect } from 'react';
import * as React from 'react';
import { Price } from '../../../models/price';
import { useTranslation } from 'react-i18next';
Expand Down Expand Up @@ -28,6 +28,10 @@ export const ConfigureExtendedPricesButton: React.FC<ConfigureExtendedPricesButt
const [extendedPrices, setExtendedPrices] = useState<Array<Price>>(prices);
const [showList, setShowList] = useState<boolean>(false);

useEffect(() => {
setExtendedPrices(prices);
}, [prices]);

/**
* Return the number of hours, user-friendly formatted
*/
Expand Down

0 comments on commit 9685b9c

Please sign in to comment.