Skip to content

Commit bbbeffd

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/kiwihr/actions/create-employee/create-employee.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export default {
174174
if (addressPostalCode) address.postalCode = addressPostalCode;
175175
if (addressCountry) address.country = addressCountry;
176176

177-
if (Object.keys(address)) {
177+
if (Object.keys(address).length > 0) {
178178
user.address = address;
179179
}
180180

0 commit comments

Comments
 (0)