Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Adds more info into payments popover and mirrors state to URL query #40

Merged
merged 8 commits into from
Jun 19, 2021
Prev Previous commit
Next Next commit
Previous commit about user handle caused unneeded state update. Fixed.
  • Loading branch information
MadOPcode committed Jun 18, 2021
commit e3adca3813cbb9a5338bd3ac58fef6a28d40b2ae
3 changes: 2 additions & 1 deletion src/store/reducers/workPeriods.js
Original file line number Diff line number Diff line change
Expand Up @@ -727,8 +727,9 @@ function updateStateFromQuery(queryStr, state) {
updateFilters = true;
}
// checking user handle
params.userHandle = params.userHandle || "";
if (params.userHandle !== filters.userHandle) {
filters.userHandle = params.userHandle?.slice(0, 256) || "";
filters.userHandle = params.userHandle.slice(0, 256);
updateFilters = true;
}
// checking sorting criteria
Expand Down