mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +01:00
(bug) unable to show extended prices of space
This commit is contained in:
parent
15b63c896e
commit
9685b9cad9
@ -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
|
||||
|
||||
|
@ -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';
|
||||
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user