Skip to content

Commit d24b541

Browse files
Update components/kiwihr/actions/update-employee-record/update-employee-record.mjs
Co-authored-by: michelle0927 <[email protected]>
1 parent ee0dbd0 commit d24b541

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/kiwihr/actions/update-employee-record/update-employee-record.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ export default {
177177
if (addressPostalCode) address.postalCode = addressPostalCode;
178178
if (addressCountry) address.country = addressCountry;
179179

180-
- if (Object.keys(address) > 0) {
181-
+ if (Object.keys(address).length > 0) {
180+
if (Object.keys(address).length > 0) {
182181
user.address = address;
183182
}
184183

0 commit comments

Comments
 (0)