1
0
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:
Du Peng 2024-01-05 15:08:47 +01:00
parent 15b63c896e
commit 9685b9cad9
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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
*/