Skip to content

Commit ed3965a

Browse files
committed
Cleanup display
1 parent 5eb45e9 commit ed3965a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Location.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function getAttribute($key)
8181
*/
8282
public function getDisplayNameAttribute()
8383
{
84-
return "{$this->city}, {$this->state}";
84+
return preg_replace('/^,\s/', '', "{$this->city}, {$this->state}");
8585
}
8686

8787
/**

0 commit comments

Comments
 (0)