Remove unneeded toString in PluginDetail

This commit is contained in:
Tyler Hallada 2022-08-21 01:06:45 -04:00
parent 4f3a439679
commit 921247343c

View File

@ -22,10 +22,7 @@ const buildPluginProps = (
): PluginProps => { ): PluginProps => {
const dataPlugin = data && data.plugins.length > 0 && data.plugins[0]; const dataPlugin = data && data.plugins.length > 0 && data.plugins[0];
return { return {
hash: hash: (plugin && plugin.hash) || (dataPlugin && dataPlugin.hash) || "",
(plugin && plugin.hash) ||
(dataPlugin && dataPlugin.hash.toString(36)) ||
"",
size: plugin?.size || (dataPlugin && dataPlugin.size) || 0, size: plugin?.size || (dataPlugin && dataPlugin.size) || 0,
author: author:
plugin?.parsed?.header.author || plugin?.parsed?.header.author ||