Skip to content

Commit

Permalink
feat : update hooks/useGetDailyDiscountStoreList.js (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
JungYeonHwi committed Oct 31, 2023
1 parent 7f6d431 commit a988f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/useGetDailyDiscountStoreList.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const useGetDailyDiscountStore = (date) => {

useEffect(() => {
const getStore = async() => {
if (date !== undefined) {
if (date !== undefined && date !== '') {
const fetchData = await storeService.getDailyDiscountStore(date);
setData(fetchData);
}
Expand Down

0 comments on commit a988f2c

Please sign in to comment.