Skip to content

Commit b47e4ce

Browse files
Update components/kiwihr/actions/update-employee-record/update-employee-record.mjs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent e535fbb commit b47e4ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

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

180-
if (Object.keys(address) > 0) {
180+
- if (Object.keys(address) > 0) {
181+
+ if (Object.keys(address).length > 0) {
181182
user.address = address;
182183
}
183184

0 commit comments

Comments
 (0)