fallback to username when user display name doesn't exist

master
Drake 1 year ago
parent e736acc936
commit d7b64a3509

@ -184,6 +184,14 @@
"https://deno.land/x/wattpad@v0.1.1/src/classes/Wattpad.ts": "f9b1762e1244207835e6258271690d2c8e0dcf9d69c8513de3f313c97174f249",
"https://deno.land/x/wattpad@v0.1.1/src/types.d.ts": "3f3a27dd5efbecbf1be6f2dd9c89146ce11c8ccb1b229d18f16d32635338b844",
"https://deno.land/x/wattpad@v0.1.1/src/utils/http.ts": "a072d8964b1fbd67d18f8a0233031d04fa4d9fc3d9b5961012f4e949b0cf8fbe",
"https://deno.land/x/wattpad@v0.2.0/mod.ts": "a66d178f2cebcee1809855974c246ac43a685407f02b39a5634e4bddcf27f8d4",
"https://deno.land/x/wattpad@v0.2.0/src/classes/Chapter.ts": "00b6097f5ffce2b44a24432fc62be324bf11a80327e2975eb115bc2e7410369c",
"https://deno.land/x/wattpad@v0.2.0/src/classes/Search.ts": "fc290bd9819ce65e3efe6473c4ed3594b07d16569e4a566f06cb04cad274214d",
"https://deno.land/x/wattpad@v0.2.0/src/classes/Story.ts": "8ad5e240d5af9c8ad55ae5f072e15a756fdd03b2667bb2c85a7b3e6f85f63285",
"https://deno.land/x/wattpad@v0.2.0/src/classes/User.ts": "389cc0b8f08541b881f7b4c88e6a6902fa7c3a27d0c157b5bfd493c96d469608",
"https://deno.land/x/wattpad@v0.2.0/src/classes/Wattpad.ts": "b0309d82d5724ac05113cc6cad2263ae62cbbe72f811769bc174a4a76645c9d7",
"https://deno.land/x/wattpad@v0.2.0/src/types.d.ts": "fecaedde369a957d77ed2ff9b03ca3e56f80c3b5a0fc768a96d9eeade2e70884",
"https://deno.land/x/wattpad@v0.2.0/src/utils/http.ts": "a072d8964b1fbd67d18f8a0233031d04fa4d9fc3d9b5961012f4e949b0cf8fbe",
"https://raw.githubusercontent.com/kt3k/callsites/v1.0.0/mod.ts": "a5fdfa7916d03459fd4830ca526d493d5f4ce0ea91619905d524c9a3a5c3cd15",
"https://raw.githubusercontent.com/nomyTx/gas/bef3e8b8b51a9929b915b3e13df07290a37832ba/jsx.ts": "adf05a2478b48bc0c1e4e18db87c7c03d0894e3751be99571c3e63375471d5d3"
},

@ -104,7 +104,9 @@ export default async (params: URLSearchParams) => {
<a
href={`https://wattpad.com/user/${story.storyJSON.user.name}`}
>
{story.storyJSON.user.fullname}
{story.storyJSON.user.fullname
? story.storyJSON.user.fullname
: story.storyJSON.user.name}
</a>
<br />©
{" " +

Loading…
Cancel
Save